import request from '@/utils/request'

// 查询工单消息列表
export function listOrderWarning(query) {
  return request({
    url: '/orderWarning/orderWarning/list',
    method: 'get',
    params: query
  })
}

// 查询工单消息详细
export function getOrderWarning(id) {
  return request({
    url: '/orderWarning/orderWarning/' + id,
    method: 'get'
  })
}

// 新增工单消息
export function addOrderWarning(data) {
  return request({
    url: '/orderWarning/orderWarning',
    method: 'post',
    data: data
  })
}

// 修改工单消息
export function updateOrderWarning(data) {
  return request({
    url: '/orderWarning/orderWarning',
    method: 'put',
    data: data
  })
}

// 删除工单消息
export function delOrderWarning(id) {
  return request({
    url: '/orderWarning/orderWarning/' + id,
    method: 'delete'
  })
}
